package com.kyriec.controller;

import com.baomidou.mybatisplus.extension.api.ApiController;
import com.kyriec.Util.EResult;
import com.kyriec.service.TypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * 分类(Types)表控制层
 *
 * @author KyrieC
 * @since 2023-11-26 14:23:51
 */
@RestController
@RequestMapping("types")
public class TypesController {
    /**
     * 服务对象
     */
    @Autowired
    private TypesService typesService;

    @GetMapping("findAllTypes")
    public EResult findAllTypes(){
        return EResult.success(typesService.findAllTypes());
    }


}

